/*et
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package graphic;

import objects.Cross;

/**
 *  
 * @author Marcin & Bartek
 * 
 * @description services the mouse Pointer
 */
public final class Pointer {
    private Pointer(){}
    private static Cross c= new Cross();
    private static Color col=new Color(1f,0f,0f,1f);
    public static float x=0;
    public static float y=0;
    public static float z=0;
    public static void init(){
        c.set(0,0,0, 0.5f, 0.15f, col);
        c.gen();
    }
    public static void refresh(){
        PointerTransform.refresh();
        x=PointerTransform.out.get(0);
        y=PointerTransform.out.get(1);
        z=PointerTransform.out.get(2);
        c.move(x,y,z);
    } 
    public static void draw(){
        Graphic.e.startDrawT(); 
        c.draw();
        Graphic.e.endDraw(); 
    }
}
